home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 635 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: clamage@Eng.Sun.COM (Steve Clamage)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Resolving public data
  5. Date: 05 Mar 1996 09:48:30 PST
  6. Organization: Sun Microsystems Inc.
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4hhpji$c5e@engnews1.Eng.Sun.COM>
  9. References: <313C28D6.794BDF32@ecid.cig.mot.com>
  10. Reply-To: clamage@Eng.Sun.COM
  11. NNTP-Posting-Host: isolde.mti.sgi.com
  12. X-Original-Date: 5 Mar 1996 16:20:02 GMT
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMTx+gUy4NqrwXLNJAQEHjAH/RkVXTS8HJUzHGzQJiuCOk2oj0UW6PLmH
  15.     AhPK4n9chv+8ynGf9VGxkHr0CWDizNy6O4L0wpmERqR4Phk6y8Stkg==
  16.     =Gh+F
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. In article 794BDF32@ecid.cig.mot.com, Joe Walker <walkerjj@ecid.cig.mot.com> writes:
  20. >I would like to know why the standard couldn't allow dropping empty parentheses.
  21. >For example instead of:
  22. >
  23. >  sync ();
  24. >
  25. >I could write:
  26. >
  27. >  sync;
  28.  
  29. But "sync" already has a meaning: "the-address-of-function-sync". 
  30.  
  31. >  This would allow us to get rid of all those get/set functions ...
  32. >
  33. >The latter could be very useful in porting C code to C++.
  34.  
  35. It would also break C code that depends on the current meaning of a
  36. function name without parentheses. Changing the meaning of long-
  37. established constructs should not be undertaken lightly.
  38.  
  39. ---
  40. Steve Clamage, stephen.clamage@eng.sun.com
  41. ---
  42. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  43.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  44.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  45.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  46.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  47. ]
  48.